package net.hn.hnms.biz.analysis.job;


import com.xxl.job.core.handler.annotation.XxlJob;
import net.hn.hnms.biz.analysis.service.IDataJudgeService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class DataJudgeJob {


    @Resource
    private IDataJudgeService dataJudgeService;

    /**
     * 预警评分数据加工
     */
    @XxlJob("mineJudgementHandler")
    public void mineJudgement() {
        dataJudgeService.MineJudgeScores();
    }

    /**
     * 领导空岗数据加工
     */
    @XxlJob("noLeader")
    public void noLeader() {
        dataJudgeService.noLeader();
    }


    /**
     * 煤炭自燃报警等级
     */
    @XxlJob("spontaneousCombustion")
    public void spontaneousCombustion() {
        dataJudgeService.spontaneousCombustion();
    }

    /**
     * 井下人员数据加工 领导疑是睡岗、领导带班空岗、人员超员、出井异常
     */
    @XxlJob("staffAnalysis")
    public void staffAnalysis() {
        dataJudgeService.staffAnalysis();
    }

    /**
     * 矿压数据加工
     */
    @XxlJob("roofAbscission")
    public void roofAbscission() {
        dataJudgeService.roofAbscission();
    }

    /**
     * 水害数据加工
     */
    @XxlJob("waterEmissionAlarm")
    public void waterEmissionAlarm() {
        dataJudgeService.waterEmissionAlarm();
    }

    /**
     * 井下人数统计
     */
    @XxlJob("staffStatistics")
    public void staffStatistics() {
        dataJudgeService.staffStatistics();
    }

    /**
     * 重大设备数据加工
     */
    @XxlJob("miningDriving")
    public void miningDriving() {
        dataJudgeService.miningDriving();
    }

    /**
     * 重大设备  停机率
     */
    @XxlJob("equipStop")
    public void equipStop() {
        dataJudgeService.equipStop();
    }

    /**
     * 重大设备传感器中断统计
     */
    @XxlJob("equipInterrupted")
    public void equipInterrupted() {
        dataJudgeService.equipInterrupted();
    }

    /**
     * 重大设备开机率传感器统计
     */
    @XxlJob("equipStart")
    public void equipStart() {
        dataJudgeService.equipStart();
    }

}

